package cn.seaboot.admin.user.bean;

import cn.seaboot.admin.user.bean.Role;
import cn.seaboot.admin.user.bean.User;
import cn.seaboot.admin.user.bean.UserDept;

import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.List;

/**
 * 业务中可能需要一个对象，包含用户的全部信息
 *
 * @author Mr.css
 * @version 2022-01-20 10:00
 */
@Schema(description = "用户信息明细")
public class UserDetail implements Serializable {
    private static final long serialVersionUID = 4925039782906864390L;
    /**
     * 用户信息
     */
    private User user;
    /**
     * 用户分组
     */
    private UserDept group;
    /**
     * 用户角色
     */
    private List<Role> roles;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public UserDept getGroup() {
        return group;
    }

    public void setGroup(UserDept group) {
        this.group = group;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "UserDetail{" +
                "user=" + user +
                ", group=" + group +
                ", roles=" + roles +
                '}';
    }
}
